import request from "@/utils/request.js";

const api_prefix = "/user";

export function certification(data) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/certification`,
    method: "POST",
    data: data,
  });
}

export function updatePassword(data) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/update/password`,
    method: "POST",
    data: data,
  });
}

export function updatePerson(data) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/update/personal`,
    method: "POST",
    data: data,
  });
}

export function echo(id) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/echo/personal/${id}`,
    method: "GET",
  });
}